// 自动生成模板CustomProcessBase
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type CustomProcessBaseBase struct {
	Name    string `json:"name" form:"name" gorm:"column:name;comment:名称;type:varchar(64);size:64;"`
	FromUrl string `json:"fromUrl" form:"fromUrl" gorm:"column:from_url;comment:来源;type:varchar(512);size:512;"`
	ToUrl   string `json:"toUrl" form:"toUrl" gorm:"column:to_url;comment:去向;type:varchar(512);size:512;"`
}

type CustomProcessBase struct {
	global.GVA_MODEL
	CustomProcessBaseBase
}

func (CustomProcessBase) TableName() string {
	return "custom_process_base"
}

// 如果使用工作流功能 需要打开下方注释 并到initialize的workflow中进行注册 且必须指定TableName
// type CustomProcessBaseWorkflow struct {
// 	// 工作流操作结构体
// 	WorkflowBase      `json:"wf"`
// 	CustomProcessBase   `json:"business"`
// }

// func (CustomProcessBase) TableName() string {
// 	return "custom_process_base"
// }

// 工作流注册代码

// initWorkflowModel内部注册
// model.WorkflowBusinessStruct["customProcessBase"] = func() model.GVA_Workflow {
//   return new(model.CustomProcessBaseWorkflow)
// }

// initWorkflowTable内部注册
// model.WorkflowBusinessTable["customProcessBase"] = func() interface{} {
// 	return new(model.CustomProcessBase)
// }
